<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:http="http://www.w3.org/1999/xhtml"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4" xmlns="http://www.w3.org/1999/html">

<head th:replace="common/headcss :: headcss"></head>

<body style="background:linear-gradient(rgba(166, 222, 111, 0.25), rgba(166, 222, 111, 0.25)), url('/static/assets/img/cloud.png') no-repeat;background-size: 100%;">

<div th:replace="common/nav :: nav"></div>
<section class="page-section clearfix">
    <div class="container">
        <div class="modal-dialog" style="margin-top: 10%;width: 340px;">
            <h2 style="color: red" th:text="${eaisessMsg}"></h2>
            <div class="modal-content">
                <div class="modal-header">
                    <h2 class="modal-title text-center" id="myModalLabel">信息登记窗口</h2>
                </div>

                <form>
                    <div class="modal-body">
                        <div class="form-group">
                            <div class="form-check form-check-inline">
                                <div class="input-group-prepend">
                                    <span class="input-group-text" id="stuNumPrepend">学&nbsp;号&nbsp;</span>
                                </div>
                                <input type="text" name="stuNum" placeholder="请输入你的学号" class="form-control"
                                       aria-describedby="stuNumPrepend" disabled th:value=" ${ stuNum } ">

                            </div>
                        </div>

                        <div class="form-group">
                            <div class="form-check form-check-inline">
                                <div class="input-group-prepend">
                                    <span class="input-group-text" id="stuNamePrepend">姓&nbsp;名&nbsp;</span>
                                </div>
                                <input type="text" name="stuName" placeholder="请输入你的姓名" class="form-control"
                                       aria-describedby="stuNamePrepend" disabled th:value=" ${ stuName } ">
                            </div>
                        </div>
                    </div>
                </form>


                <form method="post" action="/info">

                    <div class="modal-body">
                        <div class="form-group">
                            <div class="form-check form-check-inline">
                                <div class="input-group-prepend">
                                    <span class="input-group-text" id="emailPrepend">邮&nbsp;箱&nbsp;</span>
                                </div>
                                <input type="email" required name="stuEmail" placeholder="请输入你的邮箱" class="form-control"
                                       aria-describedby="emailPrepend" th:value=" ${ stuEmail } ">

                            </div>
                        </div>

                        <div class="form-group">
                            <div class="form-check form-check-inline">
                                <div class="input-group-prepend">
                                    <span class="input-group-text" id="eaisessPrepend">Token</span>
                                </div>
                                <input type="text" required name="stuEaisess" placeholder="请输入你的Eaisess(该值填错或不填都会导致打卡失败)"
                                       class="form-control" aria-describedby="eaisessPrepend"
                                       th:value=" ${ stuEaisess } ">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="form-check form-check-inline">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">Token值如何获取请看网页下面！</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <div class="form-group">
                            <button type="submit" class="btn btn-primary form-control">更新信息</button>
                        </div>
                    </div>

                </form>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title text-center">Token值怎么获取</h3>
            </div>
            <div style="margin: 20px;">
                <h4>
                    Step1. PC端Chrome浏览器打开 https://app.buaa.edu.cn/site/buaaStudentNcov/index 这个网页，登录后
                </h4>
            </div>
            <div style="margin: 20px;">
                <h4>
                    Step2. 按下F12打开控制台，点击 application， 点击Cookies然后展开，点击 https://app.buaa.edu.cn
                </h4>
            </div>
            <div style="margin: 20px;">
                <h4>
                    Step3. 找到Name为eai-sess的那一行所对应的value值
                </h4>
            </div>
            <div style="margin: 20px;">
                <img src="/static/assets/img/read.jpg" alt="示意图" style="margin: 30px; max-width: 90%;">
            </div>
        </div>
    </div>
</section>

<div th:replace="common/footer :: footer"></div>
<div th:replace="common/footerscript :: footerscript"></div>
</body>

</html>